package com.kimi.abyss.rbac.api.pojo;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * no-op
 *
 * @author kimi
 * @date 2021/7/19
 */
@Data
@ToString
public class SysUser implements Serializable {

    private Integer id;

    private String username;

    @ToString.Exclude
    private String password;

    private String nickname;

    private Integer sex;

    private String mobile;

    private String email;

    private Integer ouId;

    private String openId;

    private String headImg;

    private Boolean enabled = Boolean.TRUE;

    private LocalDateTime createdDate;

    private String createdBy;

    private LocalDateTime lastModifiedDate;

    private String lastModifiedBy;

    public SysUser() {
    }

    public SysUser(String username, String password, String mobile, String openId) {
        this.username = username;
        this.password = password;
        this.mobile = mobile;
        this.openId = openId;
    }

}
